QT       += core gui network multimedia

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    comm/ffmpegheader.cpp \
    comm/mediaoutput.cpp \
    comm/rtp.cpp \
    main.cpp \
    receiver/audiodecoder.cpp \
    receiver/fifobuffer.cpp \
    receiver/receiverwidget.cpp \
    receiver/rtprecv.cpp \
    receiver/videodecoder.cpp \
    sender/mediacapturer.cpp \
    sender/rtpsend.cpp \
    sender/senderwidget.cpp \
    sender/worker.cpp \
    widget.cpp

HEADERS += \
    comm/config.h \
    comm/ffmpegheader.h \
    comm/mediaoutput.h \
    comm/rtp.h \
    receiver/audiodecoder.h \
    receiver/fifobuffer.h \
    receiver/receiverwidget.h \
    receiver/rtprecv.h \
    receiver/videodecoder.h \
    sender/mediacapturer.h \
    sender/rtpsend.h \
    sender/senderwidget.h \
    sender/worker.h \
    widget.h

FORMS += \
    receiver/receiverwidget.ui \
    sender/senderwidget.ui \
    widget.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lavcodec
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lavdevice
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lavfilter
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lavformat
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lavutil
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lpostproc
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lswresample
win32: LIBS += -L$$PWD/FFmpegLib/lib/ -lswscale
INCLUDEPATH += $$PWD/FFmpegLib/include
DEPENDPATH += $$PWD/FFmpegLib/include

win32: LIBS += -L$$PWD/SDLLib/lib/ -lSDL2
INCLUDEPATH += $$PWD/SDLLib/include
DEPENDPATH += $$PWD/SDLLib/include
